package org.fing.edu.uy.esbadp.core.entity;

import java.io.Serializable;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSeeAlso;

import org.fing.edu.uy.esbadp.core.constants.ConfigConstants;

@XmlRootElement(name = ConfigConstants.EVENTS_ELEMENT)
@XmlAccessorType(XmlAccessType.FIELD)
@XmlSeeAlso({DMAdpServiceRequerimentsName.class})
public class DMAdpEvent implements Serializable {
	
	private static final long serialVersionUID = 1L;
	
	String name;	
	String description;
	@XmlElement(name=ConfigConstants.EVENTS_UNMET_SERVICE_REQUERIMENTS)
	DMAdpServiceRequerimentsName unmetServiceRequeriments;
	
	public DMAdpEvent(){
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
	
	public DMAdpServiceRequerimentsName getUnmetServiceRequeriments() {
		return unmetServiceRequeriments;
	}

	public void setUnmetServiceRequeriments(DMAdpServiceRequerimentsName unmetServiceRequeriments) {
		this.unmetServiceRequeriments = unmetServiceRequeriments;
	}

	public String toString(){
		StringBuilder sb = new StringBuilder();
		sb.append("  name:");
		sb.append(name);
		sb.append("\n");		
		sb.append("  description:");
		sb.append(description);
		sb.append("\n");
		sb.append("  unmet-service-requeriments ->\n");
		sb.append(unmetServiceRequeriments.toString());
		return sb.toString();	
	}
	
}
